/**
 * Created by Freeman on 2017/11/7.
 */
import {AsyncStorage} from 'react-native'
import auth from "../store/auth/reducer";

// More info here:  https://shift.infinite.red/shipping-persistant-reducers-7341691232b1
const REDUX_PERSIST = {
  key:'root',
  storage: AsyncStorage,
  //blacklist: ['nav'], // reducer keys that you do NOT want stored to persistence here
  whitelist: ['auth'],// Optionally, just specify the keys you DO want stored to
  // persistence. An empty array means 'don't store any reducers' -> infinitered/ignite#409
}

export default REDUX_PERSIST
